home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Golf Digest's Best Places to Play
/
Golf Digest's Best Places to Play.iso
/
diamond
/
dbrs_ibm.dir
/
00035_Script_ValuableScript
< prev
next >
Wrap
Text File
|
1995-05-15
|
3KB
|
94 lines
on exitFrame
go to marker(0)+4
end
on mouseDown
global revealCheck
set ButtonNum=the clickOn
if ButtonNum>0 then
set ButtonName=the name of cast (the castNum of sprite ButtonNum)
if (ButtonNum >1) and (ButtonNum < 8) and (revealCheck<5) then
DropRock(ButtonNum)
end if
if chars(ButtonName,1,6) = "ToMain" then
if PressBtn(ButtonNum) then
AllPuppetsOff
go to marker(0)+5
end if
end if
if chars(ButtonName,1,4) = "Help" then
if PressBtn(ButtonNum) then
showHelp
puppetsprite ButtonNum, true
set the castNum of sprite ButtonNum to the number of cast (ButtonName)
puppetsprite ButtonNum, false
end if
end if
end if
end mouseDown
on DropRock ButtonNum
global revealCheck
puppetsound 0
puppetsound "PickSound"
set ButtonName=the name of cast (the castNum of sprite ButtonNum)
if ButtonNum=2 then
DropRandomRock
else
set revealCheck to revealCheck+1
puppetsprite ButtonNum, true
put the locH of sprite ButtonNum into x
put the locV of sprite ButtonNum into y
repeat with i=1 to 20
set the locH of sprite ButtonNum to x+(Random(20)-10)
updateStage
end repeat
repeat while y<540
set y=y+1
set the locV of sprite ButtonNum to y
updateStage
end repeat
if revealCheck=5 then
set the cursor of sprite 2 to 0
updateStage
showCode
end if
end if
updateStage
end WhatPick
on DropRandomRock
set shakerNum to Random(5)+2
puppetsprite shakerNum, true
puppetsprite 8,true
set shakerX to the locH of sprite shakerNum
set x to the mouseH
set y to the mouseV
set the locH of sprite 8 to x
set the locV of sprite 8 to y
set the castNum of sprite 8 to the number of cast ("RockRandom" & Random(3))
repeat with i=1 to 20
set the locH of sprite 8 to x+(Random(20)-10)
set the locH of sprite shakerNum to shakerX+(Random(20)-10)
updateStage
end repeat
set the locH of sprite shakerNum to shakerX
repeat while y<500
set y=y+1
set the locV of sprite 8 to y
updateStage
end repeat
end
on showCode
puppetsound "FirstCutYeahSound"
puppetsprite 40, true
set the castNum of sprite 40 to the number of cast ("Code4")
updateStage
repeat while soundbusy(1)
nothing
end repeat
set the castNum of sprite 40 to the number of cast ("HelpDot")
puppetsprite 40, false
end showCode